import request from '@/utils/request'

// 机器维修记录列表
export function repairListApi(query) {
  return request({
    url: '/module/repairRecord/list',
    method: 'get',
    params: query
  })
}
//新增机器维修记录
export function addRepairApi(data) {
  return request({
    url: '/module/repairRecord',
    method: 'post',
    data
  })
}

//维修记录单详情
export function detailsRepairApi(id) {
  return request({
    url: '/module/repairRecord/'+id,
    method: 'get',
  })
}

//修改记录单详情
export function updateRepairApi(data) {
  return request({
    url: '/module/repairRecord',
    method: 'put',
    data
  })
}


//删除机器维修单
export function delRepairApi(id) {
  return request({
    url: '/module/repairRecord/'+id,
    method: 'delete',
  })
}
